/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jdbcpojos;

/**
 * @author piotrek
 */
public class PurchaseDetail {

	private Long idPurchaseDetail;
	private Product product;
	private Purchase purchase;
	private int amount;

	public PurchaseDetail(){

	}

	/**
	 * @return the idPurchaseDetail
	 */ public Long getIdPurchaseDetail() {
		return idPurchaseDetail;
	}

	/**
	 * @param idPurchaseDetail the idPurchaseDetail to set
	 */ public void setIdPurchaseDetail(Long idPurchaseDetail) {
		this.idPurchaseDetail = idPurchaseDetail;
	}

	/**
	 * @return the product
	 */ public Product getProduct() {
		return product;
	}

	/**
	 * @param product the product to set
	 */ public void setProduct(Product product) {
		this.product = product;
	}

	/**
	 * @return the purchase
	 */ public Purchase getPurchase() {
		return purchase;
	}

	/**
	 * @param purchase the purchase to set
	 */ public void setPurchase(Purchase purchase) {
		this.purchase = purchase;
	}

	/**
	 * @return the amount
	 */ public int getAmount() {
		return amount;
	}

	/**
	 * @param amount the amount to set
	 */ public void setAmount(int amount) {
		this.amount = amount;
	}

}
